diff options
Diffstat (limited to 'app/[lng]')
4 files changed, 9 insertions, 89 deletions
diff --git a/app/[lng]/engineering/(engineering)/tech-project-avl/page.tsx b/app/[lng]/engineering/(engineering)/tech-project-avl/page.tsx deleted file mode 100644 index 21bc7b5d..00000000 --- a/app/[lng]/engineering/(engineering)/tech-project-avl/page.tsx +++ /dev/null @@ -1,85 +0,0 @@ -import * as React from "react"
-import { redirect } from "next/navigation"
-import { getServerSession } from "next-auth/next"
-import { authOptions } from "@/app/api/auth/[...nextauth]/route"
-import { SearchParams } from "@/types/table"
-import { searchParamsCache } from "@/lib/tech-project-avl/validations"
-import { Skeleton } from "@/components/ui/skeleton"
-import { Shell } from "@/components/shell"
-import { AcceptedQuotationsTable } from "@/lib/tech-project-avl/table/accepted-quotations-table"
-import { getAcceptedTechSalesVendorQuotations } from "@/lib/techsales-rfq/service"
-import { getValidFilters } from "@/lib/data-table"
-import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton"
-import { Ellipsis } from "lucide-react"
-
-export interface PageProps {
- params: Promise<{ lng: string }>
- searchParams: Promise<SearchParams>
-}
-
-export default async function AcceptedQuotationsPage({
- params,
- searchParams,
-}: PageProps) {
- const { lng } = await params
-
- const session = await getServerSession(authOptions)
- if (!session) {
- redirect(`/${lng}/auth/signin`)
- }
-
- const search = await searchParams
- const { page, perPage, sort, filters, search: searchText } = searchParamsCache.parse(search)
- const validFilters = getValidFilters(filters ?? [])
-
- const { data, pageCount } = await getAcceptedTechSalesVendorQuotations({
- page,
- perPage: perPage ?? 10,
- sort,
- search: searchText,
- filters: validFilters,
- })
-
- return (
- <Shell className="gap-2">
- <div className="flex items-center justify-between space-y-2">
- <div className="flex items-center justify-between space-y-2">
- <div>
- <h2 className="text-2xl font-bold tracking-tight">
- 승인된 견적서(해양TOP,HULL) 관리
- </h2>
- {/* <p className="text-muted-foreground">
- 기술영업 승인 견적서에 대한 요약 정보를 확인하고{" "}
- <span className="inline-flex items-center whitespace-nowrap">
- <Ellipsis className="size-3" />
- <span className="ml-1">버튼</span>
- </span>
- 을 통해 RFQ 코드, 설명, 업체명, 업체 코드 등의 상세 정보를 확인할 수 있습니다.
- </p> */}
- </div>
- </div>
- </div>
-
- <React.Suspense fallback={<Skeleton className="h-7 w-52" />}>
- {/* Date range picker can be added here if needed */}
- </React.Suspense>
-
- <React.Suspense
- fallback={
- <DataTableSkeleton
- columnCount={12}
- searchableColumnCount={2}
- filterableColumnCount={4}
- cellWidths={["10rem", "15rem", "12rem", "10rem", "10rem", "12rem", "8rem", "12rem", "10rem", "8rem", "10rem", "10rem"]}
- shrinkZero
- />
- }
- >
- <AcceptedQuotationsTable
- data={data}
- pageCount={pageCount}
- />
- </React.Suspense>
- </Shell>
- )
-}
diff --git a/app/[lng]/evcp/(evcp)/evaluation-target-list/page.tsx b/app/[lng]/evcp/(evcp)/evaluation-target-list/page.tsx index 886d061d..325037d8 100644 --- a/app/[lng]/evcp/(evcp)/evaluation-target-list/page.tsx +++ b/app/[lng]/evcp/(evcp)/evaluation-target-list/page.tsx @@ -10,6 +10,9 @@ import { getEvaluationTargets } from "@/lib/evaluation-target-list/service" import { InformationButton } from "@/components/information/information-button" import { EvaluationTargetsTable } from "@/lib/evaluation-target-list/table/evaluation-target-table" +export const dynamic = 'force-dynamic' +export const revalidate = 0 + export const metadata: Metadata = { title: "협력업체 평가 대상 관리", description: "협력업체 평가 대상을 확정하고 담당자를 지정합니다.", @@ -50,7 +53,7 @@ export default async function EvaluationTargetsPage(props: EvaluationTargetsPage {/* Main Table */} <React.Suspense - key={`evaluation-targets-${search.page}-${JSON.stringify(search.filters)}-${search.joinOperator}-${search.search || 'no-search'}`} + // key={`evaluation-targets-${search.page}-${JSON.stringify(search.filters)}-${search.joinOperator}-${search.search || 'no-search'}`} fallback={ <DataTableSkeleton columnCount={12} diff --git a/app/[lng]/evcp/(evcp)/tech-vendor-possible-items/page.tsx b/app/[lng]/evcp/(evcp)/tech-vendor-possible-items/page.tsx index 00192d85..51ff6003 100644 --- a/app/[lng]/evcp/(evcp)/tech-vendor-possible-items/page.tsx +++ b/app/[lng]/evcp/(evcp)/tech-vendor-possible-items/page.tsx @@ -6,7 +6,7 @@ import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton" import { Shell } from "@/components/shell"
import { searchParamsTechVendorPossibleItemsCache } from "@/lib/tech-vendor-possible-items/validations"
-import { getTechVendorPossibleItems, getUniqueTechVendorTypes } from "@/lib/tech-vendor-possible-items/service"
+import { getTechVendorPossibleItems } from "@/lib/tech-vendor-possible-items/service"
import { PossibleItemsDataTable } from "@/lib/tech-vendor-possible-items/table/possible-items-data-table"
import { TechVendorPossibleItemsContainer } from "@/components/tech-vendor-possible-items/tech-vendor-possible-items-container"
@@ -31,9 +31,9 @@ export default async function TechVendorPossibleItemsPage(props: TechVendorPossi const promises = Promise.all([
getTechVendorPossibleItems({
...search,
- filters: validFilters,
+ filters: validFilters as any,
}),
- getUniqueTechVendorTypes(),
+ // getUniqueTechVendorTypes(),
])
return (
diff --git a/app/[lng]/pending/page.tsx b/app/[lng]/pending/page.tsx index 0800e5d2..b3818873 100644 --- a/app/[lng]/pending/page.tsx +++ b/app/[lng]/pending/page.tsx @@ -15,6 +15,8 @@ import { getServerSession } from "next-auth/next" export default async function PendingPage() { const session = await getServerSession(authOptions) + console.log(session) + return ( <div className="max-w-4xl mx-auto space-y-8"> |
